Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix quality warning tooltip not staying dismissed #5550

Merged

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented May 3, 2021

The flag that keep track of whether the quality warning tooltip was dismissed was a local data of the LocalMediaControls component, so it was reset when a new instance of the component was created again. As a new instance could be created several times during the same call (for example, when switching between speaker and grid mode) the warning tooltip could appear again after being dismissed. Now the flag is kept in the store and shared between different instances.

How to test

  • Start a call on a flaky connection
  • Wait until the quality warning is shown and dismiss it
  • Switch between speaker mode and grid mode

Result with this pull request

The quality warning icon is shown again, but the tooltip is not shown (unless hovering on the icon)

Result with this pull request

The quality warning tooltip appears again

The flag that keep track of whether the quality warning tooltip was
dismissed was a local data of the LocalMediaControls component, so it
was reset when a new instance of the component was created again. As a
new instance could be created several times during the same call (for
example, when switching between speaker and grid mode) the warning
tooltip could appear again after being dismissed. Now the flag is kept
in the store and shared between different instances.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu
Copy link
Member Author

danxuliu commented May 3, 2021

/backport to stable21.1

@danxuliu
Copy link
Member Author

danxuliu commented May 3, 2021

/backport to stable20.1

@danxuliu
Copy link
Member Author

danxuliu commented May 3, 2021

/backport to stable21

@danxuliu
Copy link
Member Author

danxuliu commented May 3, 2021

/backport to stable20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants